package com.wtwd.device.handler;


import com.wtwd.device.protocol.AppProtocol;
import io.netty.channel.Channel;

public interface IMsgHandler {


    /**
     * 接受app消息进行处理
     */
    void processMessage(AppProtocol protocol, Channel channel);

    /**
     * 下发消息 写入app
     *
     * @param protocol
     */
    void sendMessage(AppProtocol protocol);
}
